export const BOARD_ROW: number = 10;
export const BOARD_COL: number = 9;
export const BOARD_SIZE: number = 90;

export const enum PieceID {
  RR = 1, RN = 2, RB = 3,  RA = 4,  RK = 5,  RC = 6,  RP = 7,
  BR = 8, BN = 9, BB = 10, BA = 11, BK = 12, BC = 13, BP = 14
};

export const PIECE_NAME_ARR: string[] = [
  "R", "N", "B", "A", "K", "C", "P",
  "r", "n", "b", "a", "k", "c", "p"
];

export const PIECE_MAX_COUNT_ARR: number[] = [
  2, 2, 2, 2, 1, 2, 5,
  2, 2, 2, 2, 1, 2, 5
]

export const PIECE_INDEX_MAP: Map<string, number> = new Map<string, number>([
  ["R", 1], ["N", 2], ["B", 3], ["A", 4], ["K", 5], ["C", 6], ["P", 7],
  ["r", 8], ["n", 9], ["b", 10], ["a", 11], ["k", 12], ["c", 13], ["p", 14]
]);

export const RK_POS_ARR = [
  66, 67, 68,
  75, 76, 77,
  84, 85, 86
]

export const BK_POS_ARR = [
  3,  4,  5,
  12, 13, 14,
  21, 22, 23
]

export const RA_POS_ARR = [
  66, 68,
    76,
  84, 86
]

export const BA_POS_ARR = [
  3,  5,
    13,
  21, 23
]

export const RB_POS_ARR = [
    47, 51,
  63, 67, 71,
    83, 87
]

export const BB_POS_ARR = [
    2,  6,
  18, 22, 26,
    38, 42
]

export const enum GameResult {
  UNKNOWN = 0,
  RED_MATE = 1,
  BLACK_MATE = 2
};